Skip to content

Conversation

@calvin-codecov
Copy link
Contributor

@calvin-codecov calvin-codecov commented Nov 11, 2025

This PR refactors the recent change of updating the org selector's link button to match the integration settings page's GH app installation button (#102680). The most recent change used inner components of the IntegrationButton component in order to use the integration settings "Add installation" button and modified the styling to be the clear button designated in the Figma. However, for non-admins who did not have access, clicking on the button would just pop out the new window and redirect back to the prevent/tests page with a error toast (if they were already GH authenticated) since they wouldn't have proper permissions.

Ex of undesired behavior:
Screenshot 2025-11-10 at 1 44 47 PM

With this change, we are just using the whole IntegrationButton which handles switching between the "Add" button for admins and the "Request" button for non-admins. I've talked to Adalene and we agreed that we are fine with changing the styling to primary button styling for both.

Admin:
Screenshot 2025-11-12 at 1 35 52 PM

Non-admin:
Screenshot 2025-11-11 at 11 32 31 AM

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 11, 2025
@calvin-codecov calvin-codecov marked this pull request as ready for review November 11, 2025 19:32
@calvin-codecov calvin-codecov requested a review from a team as a code owner November 11, 2025 19:32
@calvin-codecov calvin-codecov changed the title Cy/no access request btn Fix Non-Admin Add GH Org button for org selector Nov 11, 2025
@calvin-codecov calvin-codecov merged commit 701ad1e into master Nov 17, 2025
49 checks passed
@calvin-codecov calvin-codecov deleted the cy/no_access_request_btn branch November 17, 2025 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants